Skip to content

Retire --reach-enable-analysis-splitting - #466

Merged
Martin Torp (mtorp) merged 3 commits into
mainfrom
martin/retire-analysis-splitting-flag
Nov 24, 2026
Merged

Martin Torp (mtorp) merged 3 commits into
mainfrom
martin/retire-analysis-splitting-flag

Conversation

@mtorp

@mtorp Martin Torp (mtorp) commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The Coana CLI is dropping analysis splitting. Each heuristic now runs one reachability analysis, and Coana keeps --disable-analysis-splitting only as a hidden no-op. This PR retires our opt-in flag to match.

  • --reach-enable-analysis-splitting is now a hidden no-op, the same way --reach-disable-analysis-splitting already is. It still parses, so CI scripts that pass it keep working.
  • Reachability always passes --disable-analysis-splitting to Coana. --reach-version can still pick an older Coana that splits by default, and this keeps those runs to one analysis. Newer Coana ignores the flag.
  • The enable_analysis_splitting parameter, the reach_enable_analysis_splitting config field and the call site are gone. The argparse definition stays so the flag is accepted.
  • The unused reach_disable_analysis_splitting and reach_lazy_mode config fields are gone too, so all three deprecated flags are retired the same way. Their argparse definitions stay.
  • The flag is removed from docs/cli-reference.md.
  • New tests check that Coana always gets --disable-analysis-splitting, and that the deprecated reach flags parse and stay out of --help.
  • Bumps to 2.15.0 with a CHANGELOG entry, including an upgrade note. It is a minor release because jobs that opted in to splitting change behavior.

Jobs that don't pass --reach-enable-analysis-splitting behave the same, since the CLI already passed --disable-analysis-splitting for them. Jobs that pass it change behavior, because the pinned Coana still supports splitting. With splitting, a reachability analysis that failed or timed out was retried in smaller batches. These jobs now run a single analysis, so their results can differ.

Tests: uv run pytest passes (1164 tests). uv run ruff check passes.

Public Changelog

  • --reach-enable-analysis-splitting is deprecated and no longer has an effect. With it, a reachability analysis that failed or timed out was retried in smaller batches. Jobs that pass it now run one analysis, as jobs without it already did, so their results can differ. The flag still parses, so existing CI commands keep working.

Expected reviewer effort: High-level design decisions

The Coana CLI no longer splits analyses, so the flag has nothing left to
turn on. It is now a hidden no-op, like --reach-disable-analysis-splitting.
It still parses, so existing CI scripts keep working.

Reachability now always passes --disable-analysis-splitting to Coana. A
version picked with --reach-version that still splits by default runs a
single analysis too, and newer versions ignore the flag.

Bump to 2.13.3.
reach_disable_analysis_splitting and reach_lazy_mode were copied into
CliConfig but never read. They are gone now, the same as the new
--reach-enable-analysis-splitting no-op. The argparse definitions stay,
so all three flags still parse.

The hidden-flag test now covers --reach-lazy-mode too.
@mtorp
Martin Torp (mtorp) marked this pull request as ready for review November 23, 2026 16:07
@mtorp
Martin Torp (mtorp) requested a review from a team as a code owner November 23, 2026 16:07
@cursor

cursor Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Backward-compatible deprecation with unchanged behavior for default/pinned Coana usage; only legacy opt-in splitting is removed.

Overview
Retires reachability analysis splitting to align with Coana CLI, which no longer splits analyses. --reach-enable-analysis-splitting is deprecated: it still parses for CI compatibility but is a hidden no-op (same pattern as --reach-disable-analysis-splitting and --reach-lazy-mode). Related config fields and the enable_analysis_splitting reachability parameter are removed.

Reachability now always forwards --disable-analysis-splitting to Coana, so runs pinned to older Coana versions that split by default still execute a single analysis; newer Coana treats the flag as a no-op.

Docs drop the public flag listing; new tests assert the Coana flag is always set and that deprecated reach flags accept input but stay off --help. Release 2.13.3.

Reviewed by Cursor Bugbot for commit 67c15da. Configure here.

Comment thread tests/unit/test_config.py Resolved
@lelia

lelia commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

bugbot run

@lelia lelia changed the title Retire --reach-enable-analysis-splitting Retire --reach-enable-analysis-splitting Nov 24, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 67c15da. Configure here.

@lelia

lelia commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Martin Torp (@mtorp) When you have a chance to rebase this branch, I'd lean towards versioning as 2.15.0 rather than a patch release. While existing CI commands will still parse, it's possible that jobs opted into splitting will lose behavior that works on pinned Coana. Those jobs could get different results because failed/timed-out analyses can no longer retry in smaller batches. Could we clarify that in the PR description / public changelog?

Moves the release to 2.15.0 above main's 2.14.0, and the changelog entry now has an upgrade note for jobs that opted in to splitting.
@mtorp

Copy link
Copy Markdown
Contributor Author

lelia Agreed on both points. The pinned Coana still supports splitting, so jobs that opted in really do change behavior.

  • Brought the branch up to date with main and moved the release to 2.15.0. I merged main in to avoid force-pushing over the reviewed commits. Happy to rebase instead if you want a linear history before merge.
  • The CHANGELOG now has an Upgrade notes entry for 2.15.0. It says jobs that pass --reach-enable-analysis-splitting used to retry a failed or timed-out analysis in smaller batches, and that they now run one analysis, so results can differ.
  • The PR description and the Public Changelog block say the same.

uv run pytest (1164 tests) and uv run ruff check pass on the updated branch.

@mtorp
Martin Torp (mtorp) merged commit a5480cc into main Nov 24, 2026
34 checks passed

This branch was successfully deployed

1 active deployment
socket-firewall — cae37c9c Deployed Nov 24, 2026 by mtorp via python-sfw-smoke-enterprise #704
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants